import { defineConfig } from 'umi';
import { policyCarConfig } from './policy-car-config';
import { policyConfig } from './policy-config';

let config;

if (process.env.SYSTEM === 'policy') {
  config = policyConfig;
} else if (process.env.SYSTEM === 'policyCar') {
  config = policyCarConfig;
}
console.log('config ts process.env.SYSTEM===', process.env.SYSTEM);
export default defineConfig({
  nodeModulesTransform: {
    type: 'none',
  },
  history: {
    type: 'hash',
  },
  // routes,
  ...config,
  links: [{ rel: 'icon', href: '/favicon.ico' }],
  fastRefresh: {},
});
